/*
    cpg生成示例代码
*/
import { statement } from "./cfg";
import { CPG } from "./cpg"; 

let cpg:CPG = new CPG("t.ts");
type outSta = Pick<statement, "type"|"code"|"index"|"line"|"astNode">
// console.log(cpg.stmArray);//节点列表
for(var sta of cpg.stmArray){
    const out:outSta = {
        type: sta.type,
        code: sta.code,
        index: sta.index,
        line: sta.line,
        astNode: sta.astNode
    }
    console.log(out);
}
console.log("-----------------------------");
console.log(cpg.ed);//边列表
